<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <script>
$(document).ready(function(){
	var winHeight=$(window).height(); //浏览器当前窗口可视区域高度	
	var bodyHeight=$(document.body).height();//浏览器当前窗口文档body的高度
	var footerHeight=$('#bottomNav').height();
	
	if(bodyHeight<=winHeight-50){ 
		$("#bottomNav").addClass("navbar-fixed-bottom");
	}
	else{
		$("#bottomNav").removeClass("navbar-fixed-bottom");
	}
});


</script>
<!-- footer -->
<footer class="footer_bg_bottom clearfix">
<nav id="bottomNav">
    <div class="footer_bottom container">
        <div class="col_2_3">

            <div class="menu">
                <ul>
                    <li><a href="${pageContext.request.contextPath}/index">主页</a></li>
                    <li><a href="#">查看订单</a></li>
                    <li><a href="${pageContext.request.contextPath}/post/postlist">查看帖子</a></li>
                    <li><a href="#">我的帖子</a></li>
                    <li><a href="#">联系我们</a></li>
                </ul>
            </div>


            <div class="clear padding20"></div>


            <p>
                &copy; 用户协议. &nbsp; <a href="#">点此了解</a>  More  <a href="#" target="_blank" title="帮帮取">帮帮取</a> - Collect from <a href="#" title="帮帮取" target="_blank">帮帮取</a> </p>

        </div>

        <div class="clear padding20"></div>
    </div>
    </nav>
</footer>
<!-- /footer -->